// date: 2021-01-01
// author: aaron
// some abbr of usually used var

#ifndef _TYPEDEF_COMMON_H
#define _TYPEDEF_COMMON_H

// include other header files, but it is better not to do

#ifdef __cplusplus // cpp header
extern "C" {
#endif

#define IP_LEN 4
#define IP_V4_TYPE 4
#define IP_V6_TYPE 6
#define VOID void

#define UINT32 unsigned int
#define UINT16 unsigned short
#define UINT8 unsigned char

#define INT32 signed int
#define INT16 signed short
#define INT8 signed char

#define RETCODE_OK 0
#define RETCODE_ERR 1

#define TRUE 1
#define FALSE 0

#ifdef __cplusplus // cpp tail
}
#endif

#endif // include tail
